//获取后台数据的文件夹
import {API,header} from 'config/config.js'
//获取快递列表
function getExpressList(){
	return uni.request({
		url:`${API}/api/data/express-list`,
		method:"GET",
		header
	})
}

//获取规格
function getSpeciList(){
	return uni.request({
		url:`${API}/api/data/spec-list`,
		method:"GET",
		header
	})
}

//获取楼栋列表
function getFloorList(){
	return uni.request({
		url:`${API}/api/data/dormitory-list`,
		method:"GET",
		header
	})
}

//获取地址
function getSite(){
	return uni.request({
		url:`${API}/api/address/list`,
		method:"GET",
		header
	})
}

//添加地址信息
function address(data){
	return uni.request({
		url:`${API}/api/address/add`,
		method:"POST",
		data,
		header
	})
}

//获取公告信息
function getnoctie(){
	return uni.request({
		url:`${API}/api/data/view-config`,
		method:"GET",
		data:{
			name:'publish'
		},
		header
	})
}
export{
	getExpressList,
	getSpeciList,
	getFloorList,
	getSite,
	address,
	getnoctie
}